package com.entity;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.util.Date;

public class AsCustoms {

    private Integer id;

    private Integer agentId;

    private String agentCode;

    private String agentName;

    @Pattern( regexp = "^\\w{3,6}$" , message = "需为3-6位数字/字母/下划线" )
    private String customName;

    private Integer customType;

    private String customTypeName;

    //验证不为null或空字符串
    @NotBlank( message = "网址不能为空" )
    private String siteUrl;

    private Boolean customStatus;

    @NotBlank( message = "法人不能为空" )
    private String bossName;

    private Integer cardType;

    private String cardTypeName;

    @NotBlank( message = "证件号码不能为空" )
    private String cardNum;

    @NotBlank( message = "公司电话不能为空" )
    private String companyTel;

    private String companyFax;

    private Date regDatetime;

    @NotBlank( message = "国家不能为空" )
    private String country;

    private String province;

    private String city;

    private String area;

    @NotBlank( message = "公司地址不能为空" )
    private String companyAddress;

    private String memo;

    public AsCustoms() { }

    public Integer getId()
    {
        return id;
    }

    public void setId( Integer id )
    {
        this.id = id;
    }

    public Integer getAgentId()
    {
        return agentId;
    }

    public void setAgentId( Integer agentId )
    {
        this.agentId = agentId;
    }

    public String getAgentCode()
    {
        return agentCode;
    }

    public void setAgentCode( String agentCode )
    {
        this.agentCode = agentCode;
    }

    public String getAgentName()
    {
        return agentName;
    }

    public void setAgentName( String agentName )
    {
        this.agentName = agentName;
    }

    public String getCustomName()
    {
        return customName;
    }

    public void setCustomName( String customName )
    {
        this.customName = customName;
    }

    public Integer getCustomType()
    {
        return customType;
    }

    public void setCustomType( Integer customType )
    {
        this.customType = customType;
    }

    public String getCustomTypeName()
    {
        return customTypeName;
    }

    public void setCustomTypeName( String customTypeName )
    {
        this.customTypeName = customTypeName;
    }

    public String getSiteUrl()
    {
        return siteUrl;
    }

    public void setSiteUrl( String siteUrl )
    {
        this.siteUrl = siteUrl;
    }

    public Boolean getCustomStatus()
    {
        return customStatus;
    }

    public void setCustomStatus( Boolean customStatus )
    {
        this.customStatus = customStatus;
    }

    public String getBossName()
    {
        return bossName;
    }

    public void setBossName( String bossName )
    {
        this.bossName = bossName;
    }

    public Integer getCardType()
    {
        return cardType;
    }

    public void setCardType( Integer cardType )
    {
        this.cardType = cardType;
    }

    public String getCardTypeName()
    {
        return cardTypeName;
    }

    public void setCardTypeName( String cardTypeName )
    {
        this.cardTypeName = cardTypeName;
    }

    public String getCardNum()
    {
        return cardNum;
    }

    public void setCardNum( String cardNum )
    {
        this.cardNum = cardNum;
    }

    public String getCompanyTel()
    {
        return companyTel;
    }

    public void setCompanyTel( String companyTel )
    {
        this.companyTel = companyTel;
    }

    public String getCompanyFax()
    {
        return companyFax;
    }

    public void setCompanyFax( String companyFax )
    {
        this.companyFax = companyFax;
    }

    public Date getRegDatetime()
    {
        return regDatetime;
    }

    public void setRegDatetime( Date regDatetime )
    {
        this.regDatetime = regDatetime;
    }

    public String getCountry()
    {
        return country;
    }

    public void setCountry( String country )
    {
        this.country = country;
    }

    public String getProvince()
    {
        return province;
    }

    public void setProvince( String province )
    {
        this.province = province;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity( String city )
    {
        this.city = city;
    }

    public String getArea()
    {
        return area;
    }

    public void setArea( String area )
    {
        this.area = area;
    }

    public String getCompanyAddress()
    {
        return companyAddress;
    }

    public void setCompanyAddress( String companyAddress )
    {
        this.companyAddress = companyAddress;
    }

    public String getMemo()
    {
        return memo;
    }

    public void setMemo( String memo )
    {
        this.memo = memo;
    }

    @Override
    public String toString()
    {
        return "{" +
                "id=" + id +
                ", agentId=" + agentId +
                ", agentCode='" + agentCode + '\'' +
                ", agentName='" + agentName + '\'' +
                ", customName='" + customName + '\'' +
                ", customType=" + customType +
                ", customTypeName='" + customTypeName + '\'' +
                ", siteUrl='" + siteUrl + '\'' +
                ", customStatus=" + customStatus +
                ", bossName='" + bossName + '\'' +
                ", cardType=" + cardType +
                ", cardTypeName='" + cardTypeName + '\'' +
                ", cardNum='" + cardNum + '\'' +
                ", companyTel='" + companyTel + '\'' +
                ", companyFax='" + companyFax + '\'' +
                ", regDatetime=" + regDatetime +
                ", country='" + country + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", area='" + area + '\'' +
                ", companyAddress='" + companyAddress + '\'' +
                ", memo='" + memo + '\'' +
                '}';
    }
}